package org.jeecg.modules.demo.blancechangerecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 会员-贵宾卡
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Data
@TableName("balance_change_record")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "balance_change_record对象", description = "会员-贵宾卡")
public class BalanceChangeRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 卡编号
     */
    @Excel(name = "卡编号", width = 15)
    @ApiModelProperty(value = "卡编号")
    private String memberId;
    /**
     * 会员名称
     */
    @Excel(name = "会员名称", width = 15)
    @ApiModelProperty(value = "会员名称")
    private String memberName;
    /**
     * 会员电话
     */
    @Excel(name = "会员电话", width = 15)
    @ApiModelProperty(value = "会员电话")
    private String memberPhone;
    /**
     * 变化编码 S-股东，M-会员
     */
    @Excel(name = "类别", width = 15)
    @ApiModelProperty(value = "类别")
    private String balanceType;

    /**
     * 变化编码 X消费 C 充值 T退款
     */
    @Excel(name = "类别", width = 15)
    @ApiModelProperty(value = "类别")
    private String changeCode;

    @Excel(name = "消费单号", width = 15)
    @ApiModelProperty(value = "消费单号")
    private String orderNo;
    /**
     * 卡售价
     */
    @Excel(name = "充值流水号", width = 15)
    @ApiModelProperty(value = "充值流水号")
    private String payCode;
    /**
     * 交易方式
     */
    @Excel(name = "交易方式", width = 15)
    @ApiModelProperty(value = "交易方式")
    private String tradeMode;
    /**
     * 交易时间
     */
    @Excel(name = "交易时间", width = 15)
    @ApiModelProperty(value = "交易时间")
    private Date tradeTime;
    /**
     * 金额
     */
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private Double amount;
    /**
     * 原值
     */
    @Excel(name = "原值", width = 15)
    @ApiModelProperty(value = "原值")
    private Double oldValue;
    /**
     * 新值
     */
    @Excel(name = "新值", width = 15)
    @ApiModelProperty(value = "新值")
    private Double newValue;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    private String storeId;
}
